
 
     %%%%%%W%  %%%%%%W%  %%W%      %%W%%%%%%%%W%        
 
   %%T%P%P%P%%%W%%%T%P%P%%%W%%%Q%      %%Q%%%T%P%P%P%P%]%        
 
   %%Q%      %%Q%%%%%%%T%]%%%Q%      %%Q%%%%%%%%W%        
 
   %%Q%      %%Q%%%T%P%P%P%]%  %%Q%      %%Q%Z%P%P%P%P%%%Q%        
 
   Z%%%%%%%T%]%%%Q%          Z%%%%%%%T%]%%%%%%%%Q%        
 
     Z%P%P%P%P%P%]%  Z%P%]%            Z%P%P%P%P%P%]%  Z%P%P%P%P%P%P%]%        
 
 
 
                                                                     
 
 C O N T E N T S   O F   T H I S   F I L E 
 
 - - - - - - - - - - - - - - - - - - - - - 
 
   *   I n t r o d u c t i o n 
 
   *   R e q u i r e m e n t s 
 
   *   I n s t a l l a t i o n 
 
   *   C o n f i g u r a t i o n 
 
   *   P r o j e c t   C o n t e n t s 
 
   *   F A Q 
 
   *   A b o u t 
 
 
 
 
 
 
 
 I N T R O D U C T I O N 
 
 - - - - - - - - - - - - 
 
 T h e   f o l l o w i n g   c o n t a i n s   t h e   s o u r c e   f i l e s   f o r   t h e   r e v a m p e d   I n t r a n e t   s y s t e m   f o r   O p u s   I n t e r n a t i o n a l   C o n s u l t a n t s   L t d . 
 
 
 
 
 
 
 
 R E Q U I R E M E N T S 
 
 - - - - - - - - - - - - 
 
   *   A   l o c a l   w e b s e r v e r   r u n n i n g   P H P 5   a n d   a b o v e   ( h t t p s : / / w w w . a p a c h e f r i e n d s . o r g / i n d e x . h t m l ) 
 
   *   A   M y S Q L   D a t a b a s e   ( h t t p s : / / w w w . a p a c h e f r i e n d s . o r g / i n d e x . h t m l ) 
 
   *   ( R e c o m m e n d e d )   b r o w s e r   s u p p o r t   f o r   H T M L 5 ,   C S S 3 ,   J a v a S c r i p t 
 
 
 
 
 
 
 
 I N S T A L L A T I O N 
 
 - - - - - - - - - - - - 
 
   *   D o w n l o a d   a n d   I n s t a l l   X A M P P   i n   a   l o c a t i o n   o f   y o u r   c h o i c e ,   s u c h   a s   " C : \ x a m p p " . 
 
   *   A f t e r   i n s t a l l a t i o n   h a s   c o m p l e t e d ,   s e l e c t   t h e   " D o   y o u   w a n t   t o   s t a r t   t h e   C o n t r o l   P a n e l   n o w ? "   c h e c k b o x   o p e n   o r   m a n u a l l y   o p e n   t h e   X A M P P   c o n t r o l   p a n e l 
 
   *   C l i c k   s t a r t   a n d   e n a b l e   t h e   A p a c h e   a n d   M y S Q L   s e r v e r s 
 
   *   T r y   g o i n g   t o   " h t t p : / / l o c a l h o s t "   o r   " 1 2 7 . 0 . 0 . 1 "   t o   s e e   i f   y o u   c a n   s e e   t h e   X A M P P   l o g o   a n d   s e l e c t   y o u r   l a n g u a g e   a s   E n g l i s h 
 
   *   C o p y   t h e   c o n t e n t s   o f   t h e   " u p l o a d / "   f o l d e r   i n   t h i s   d i r e c t o r y ,   t o   " C : \ x a m p p \ h t d o c s \ " 
 
   *   N a v i g a t e   t o   " h t t p : / / l o c a l h o s t / i n d e x . p h p "   a n d   s e e   i f   y o u   c a n   v i e w   t h e   O p u s   p a g e   w i t h   t h e   n a v i g a t i o n   b u t t o n s . 
 
   *   F o r   m o r e   h e l p   ( h t t p s : / / w w w . u d e m y . c o m / b l o g / x a m p p - t u t o r i a l / ) 
 
 
 
 
 
 
 
 C O N F I G U R A T I O N 
 
 - - - - - - - - - - - - - 
 
   *   O n c e   y o u   s e e   t h e   O p u s   p a g e   a f t e r   i n s t a l l i n g ,   y o u   n e e d   t o   s e t   u p   t h e   M y S Q L   d a t a b a s e . 
 
   *   I n   t h e   X A M P P   c o n t r o l   p a n e l ,   n e x t   t o   M y S Q L ,   c l i c k   " A d m i n " 
 
   *   Y o u   s h o u l d   b e   r e d i r e c t e d   t o   t h e   p h p M y A d m i n   c o n t r o l   p a n e l 
 
   *   Y o u   w i l l   s e e   o n   t h e   s a m e   p a g e   t h e r e   i s   a   " C r e a t e   n e w   D a t a b a s e "   f i e l d 
 
   *   E n t e r   t h e   n a m e   f o r   t h e   d a t a b a s e   a s   " n e e d a _ o p u s d b " 
 
   *   E n s u r e   t h e   d a t a b a s e   w a s   c r e a t e d   s u c c e s s f u l l y   b y   w a i t i n g   f o r   t h e   s u c c e s s   m e s s a g e 
 
   *   B y   d e f a u l t ,   t h e   u s e r n a m e   f o r   t h i s   d a t a b a s e   i s   r o o t   a n d   t h e   p a s s w o r d   i s   b l a n k   ( t h e r e   i s   n o n e ) 
 
   *   G o   t o   t h e   " U s e r s "   s e c t i o n   o f   p h p M y A d m i n 
 
   *   C r e a t e   a   n e w   u s e r   w i t h   t h e   u s e r n a m e   " n e e d a _ o p u s " 
 
   *   U s e   t h e   p a s s w o r d   " o p u S S u l o S i d 1 2 3 " 
 
   *   C l i c k   t h e   n e x t   b u t t o n   a n d   y o u   w i l l   b e   a s k e d   t o   s e t   t h e   u s e r   r i g h t s 
 
   *   C h e c k   a l l   t h e   b o x e s ,   s o   t h e   u s e r   h a s   r i g h t s   t o   d o   e v e r y t h i n g 
 
   *   C l i c k   n e x t   a n d   t h e   u s e r   s h o u l d   b e   c r e a t e d   
 
   *   O n   t h e   s a m e   u s e r s   p a g e   t h e r e   s h o u l d   b e   a n   o p t i o n   t o   a d d   u s e r s   t o   a   d a t a b a s e 
 
   *   A d d   t h e   u s e r   " n e e d a _ o p u s "   t o   t h e   d a t a b a s e   " n e e d a _ o p u s d b " 
 
   *   E n s u r e   t h i s   h a s   c o m p l e t e d   s u c c e s s f u l l y ,   e l s e   t h e   c o n n e c t i o n s   w i l l   n o t   w o r k 
 
   *   F i n a l l y   y o u   n e e d   t o   p o p u l a t e   t h e   d a t a b a s e   w i t h   d a t a .   S e l e c t   t h e   d a t a b a s e   " n e e d a _ o p u s d b " 
 
   *   C l i c k   t h e   " I m p o r t "   b u t t o n   a t   t h e   t o p   o f   t h e   p a g e 
 
   *   I n   t h e   " b r o w s e   f o r   a   f i l e " ,   s e c t i o n .   B r o w s e   t o   t h e   " n e e d a _ o p u s d b . s q l "   f i l e   i n   t h i s   d i r e c t o r y 
 
   *   E n s u r e   p a r t i a l   i m p o r t   i s   c h e c k e d ,   a n d   t h e   f o r m a t   i s   " S Q L " 
 
   *   C l i c k   G o ,   a n d   w a i t   f o r   t h e   d a t a   t o   b e   i m p o r t e d .   T h i s   c o u l d   t a k e   a   f e w   m i n u t e s 
 
   *   E n s u r e   t h e   d a t a   w a s   i m p o r t e d   s u c c e s s f u l l y   b y   w a i t i n g   f o r   t h e   s u c c e s s   m e s s a g e 
 
   *   C o n f i g u r a t i o n   i s   c o m p l e t e 
 
   *   T o   c h e c k   t h i s   h a s   w o r k e d   g o   t o   " h t t p : / / l o c a l h o s t / p r o f i l e "   a n d   s e e   i f   y o u   c a n   s e e   t h e   u s e r   " J o h n   S m i t h "   a n d   d e t a i l s   a b o u t   h i m 
 
   *   I f   t h i s   p r o c e s s   w a s   s u c c e s s f u l ,   i t   i s   r e c o m m e n d e d   t o   d e l e t e   t h e   . s q l   f i l e   f o r   s e c u r i t y   p u r p o s e s 
 
 
 
 T h e   d e t a i l s   f o r   t h e   d a t a b a s e   c a n   b e   c h a n g e d   i n   t h e   f u t u r e ,   h o w e v e r   t h e   s o u r c e   c o d e   f i l e s   a r e   c u r r e n t l y   c o n f i g u r e d   t o   c o n n e c t   t o   a   d a t a b a s e   w i t h   t h e   f o l l o w i n g   d e t a i l s . 
 
 T h i s   c o n n e c t i o n   i s   u s u a l l y   a t   t h e   t o p   o f   e a c h   P H P   f i l e   a n d   l o o k s   s i m i l a r   t o   t h i s : 
 
 
 
       
 
                 m y s q l _ c o n n e c t ( " l o c a l h o s t " ,   " n e e d a _ o p u s " ,   " o p u S S u l o S i d 1 2 3 " ) 
 
                         o r   d i e ( " C o u l d   n o t   c o n n e c t :   "   .   m y s q l _ e r r o r ( ) ) ; 
 
                 m y s q l _ s e l e c t _ d b ( " n e e d a _ o p u s d b " ) ; 
 
 
 
 
 
 I t   i s   r e c o m m e n d e d   y o u   c h a n g e   t h e   d e t a i l s   o f   t h e   d a t a b a s e   a n d   u s e r ,   s u c h   a s   t h e   n a m e ,   u s e r n a m e   a n d   p a s s w o r d 
 
 T h e   e a s i e s t   w a y   t o   d o   t h i s   i s   t o   p e r f o r m   a   s i m p l e   f i n d   a n d   r e p l a c e   o n   a l l   t h e   f i l e s   t o   c h a n g e   t h i s   i n f o r m a t i o n 
 
 
 
 
 
 
 
 P R O J E C T   C O N T E N T S 
 
 - - - - - - - - - - - - - 
 
 T h e   f o l l o w i n g   c o n t a i n   p a g e s : 
 
   *   l o c a l h o s t / m a p s   -   T h e   s t a n d a l o n e   m a p p i n g   a p p l i c a t i o n   f o r   v i e w i n g   a n   o v e r v i e w   o f   p e o p l e   a n d   p r o j e c t s . 
 
   *   l o c a l h o s t / f u n d i n g   -   T h e   f o r m   w h e r e   u s e r s   s u b m i t   a p p l i c a t i o n s   f o r   t e c h n i c a l   f u n d i n g 
 
   *   l o c a l h o s t / f u n d i n g / a d m i n . p h p   -   T h e   m a n a g e m e n t   p a n e l   t o   v i e w   f u n d i n g   a p p l i c a t i o n s   a n d   g e n e r a t e   g r a p h s   f r o m   t h e   s t a t i s t i c s 
 
   *   l o c a l h o s t / p r o f i l e /   -   T h e   p a g e   w h e r e   a   u s e r s   p r o f i l e   c a n   b e   v i e w e d 
 
   *   l o c a l h o s t / p r o f i l e / ? i d = 2 5   -   V i e w   t h e   p r o f i l e   o f   u s e r   # 2 5 
 
   *   l o c a l h o s t / p u b l i c a t i o n s /   -   P u b l i c a t i o n s   s e a r c h   o f   a   p e r s o n 
 
   
 
 O t h e r   f o l d e r s 
 
   *   l o c a l h o s t / c s s   -   c o n t a i n s   s o m e   C S S   f i l e s 
 
   *   l o c a l h o s t / d a t a T a b l e s   -   t h e   D a t a T a b l e s   p l u g i n   u s e d   o n   t h e   t e c h n i c a l   f u n d i n g   a d m i n   p a g e 
 
   *   l o c a l h o s t / f o r m s   -   a n   i n i t i a l   t e s t   p a g e   f o r   d e m o i n g   a u t o c o m p l e t e   f u n c t i o n a l i t y 
 
   *   l o c a l h o s t / j s   -   c o n t a i n s   t h e   J a v a S c r i p t   f i l e s   f o r   t h e   D a t a T a b l e s   a n d   F l o t   p l u g i n ,   b o t h   u s e d   o n   t h e   t e c h n i c a l   f u n d i n g   a d m i n   p a g e 
 
   *   l o c a l h o s t / l o c a t i o n e x t r a c t   -   t h e   u n f i n i s h e d   a l g o r i t h m   f o r   e x t r a c t i n g   l o c a t i o n   i n f o r m a t i o n   f r o m   p r o j e c t s 
 
   *   l o c a l h o s t / m a p   -   t h e   m a p   o v e r l a y e d     w h e n   t h e   s t a t i c   m a p   i s   c l i c k e d   o n   t h e   p r o f i l e   p a g e 
 
   *   l o c a l h o s t / o r a n g e b o x   -   t h e   O r a n g e B o x   p l u g i n   f i l e s   u s e d   f o r   c r e a t i n g   o v e r l a y   p o p u p   w i n d o w s 
 
   *   l o c a l h o s t / p r o f i l e _ o l d   -   t h e   e x i s t i n g   p r o f i l e   p a g e   f r o m   O p u s ' s   i n t r a n e t   s y s t e m 
 
   *   l o c a l h o s t / s e a r c h   -   a   t e s t   p a g e   a t   t r y i n g   t o   u s e   t h e   n e w   h e a d e r   a n d   f o o t e r   o n   O p u s ' s   s e a r c h   p a g e . 
 
   *   l o c a l h o s t / t h e m e   -   c o n t a i n s   a n   e m p t y   p a g e   w i t h   t h e m e   u s e d   o n   a l l   o f   t h e   c r e a t e d   i n t r a n e t   p a g e s 
 
   *   l o c a l h o s t / t o k e n - i n p u t   -   t h e   T o k e n   I n p u t   l i b r a r y   u s e d   f o r   l i s t b o x e s   o n   t h e   p r o f i l e   p a g e 
 
   
 
 O t h e r   f i l e s   o f   i n t e r e s t 
 
   *   l o c a l h o s t / i e p n g f i x . h t c   -   u s e d   t o   h e l p   f i x   e r r o r s   w h e n   v i e w i n g   i m a g e s   i n   I E 
 
   *   l o c a l h o s t / h e a d e r . p h p   -   t h e   h e a d e r   f o r   t h e   t h e m e   t o   b e   i n c l u d e d   i n   a l l   p a g e s 
 
   *   l o c a l h o s t / l e a g u e g o t h i c - r e g u l a r - w e b f o n t . t f f   -   t h e   e m b e d d e d   f o n t   u s e d   f o r   h e a d i n g s   i n   t h e   t h e m e 
 
   *   l o c a l h o s t / o p u s _ c g i _ s t y l e s . c s s   -   t h e   s t y l e s h e e t   o f   t h e   e x i s t i n g   i n t r a n e t   s y s t e m 
 
   *   l o c a l h o s t / p e n c i l - h e a d - s i d . c u r   -   a   c u s t o m   c u r s o r   I   c r e a t e d   t h a t   w a s   m e a n t   t o   b e   u s e d   w h e n   h o v e r i n g   o v e r   a n   E D I T A B L E   f i e l d 
 
   
 
   
 
 
 
 F A Q 
 
 - - - - - - - - - - - - - 
 
 C a n   I   d e l e t e   t h e   c o n t e n t s   o f   t h e   \ p r o f i l e \ u p l o a d s \ a v a t a r s   f o l d e r ? 
 
   *   Y e s ,   y o u   c a n .   H o w e v e r   t h e   r e f e r e n c e s   t o   t h e s e   p r o f i l e   i m a g e s   f r o m   t h e   d a t a b a s e   w i l l   b e   b r o k e n . 
 
   *   Y o u   w i l l   n e e d   t o   c h a n g e   t h e   l i n k s   i n   t h e   d a t a b a s e   t o   r e f e r e n c e   a   p l a c e h o l d e r   i m a g e . 
 
 
 
 C a n   I   t h e n   a l s o   d e l e t e   t h e   c o n t e n t s   o f   t h e   \ f u n d i n g \ u p l o a d s \ p d f   f o l d e r ?   
 
   *   A g a i n ,   y e s   y o u   c a n .   H o w e v e r   t h e   l i n k s   t o   t h e   u p l o a d e d   P D F s   w i l l   b e   b r o k e n   a n d   w i l l   n e e d   t o   b e   u p d a t e d . 
 
   
 
 I   u p d a t e d   t h e   O r a n g e B o x / M a r k e r C l u s t e r e r   l i b r a r y   a n d   n o w   I ' m   g e t t i n g   e r r o r s ? 
 
   *   T h i s   i s   b e c a u s e   b o t h   t h e s e   l i b r a r i e s   s o u r c e   f i l e s   h a v e   b e e n   m o d i f i e d   t o   s u i t   t h e   p r o j e c t .   
 
   *   I f   y o u   d o   w i s h   t o   u p d a t e   t h e s e   s o u r c e   f i l e s ,   y o u   w i l l   n e e d   t o   c o p y   a n d   p a s t e   t h e   c u s t o m   m e t h o d s   a n d   d a t a   a c r o s s . 
 
   *   Y o u   c a n   l o o k   a t   t h e   o r i g i n a l   s o u r c e   o f   t h e s e   l i b r a r i e s   ( f o r   t h e   s a m e   v e r s i o n )   t o   s e e   w h a t   h a s   b e e n   c h a n g e d   b e f o r e   c o p y i n g . 
 
 
 
 T h e   w e b s i t e   i s n ' t   r e n d e r i n g   c o r r e c t l y   i n   I n t e r n e t   E x p l o r e r   9 ? 
 
   *   T h e   s i t e   s u p p o r t s   I E 9   i t s e l f ,   a n d   a n y   n e w e r   v e r s i o n s . 
 
   *   A   c o m m o n   r e a s o n   c o u l d   b e   d u e   h a v i n g   c o n s o l e . l o g   s t a t e m e n t s   i n   p a r t s   o f   t h e   s o u r c e   f i l e . 
 
   *   T r y   r e l o a d i n g   t h e   p a g e   w i t h   t h e   d e v e l o p e r   t o o l s   o p e n   a n d   s e e i n g   i f   i t   r e n d e r s   c o r r e c t l y .   T h i s   i s   t h e   m o s t   c o m m o n   f i x . 
 
   *   I f   t h e   a b o v e   d o e s n ' t   w o r k ,   e n s u r e   t h e   e m b e d d e d   f o n t s   a n d   s t y l e   s h e e t s   h a v e   t h e   c o r r e c t   p e r m i s s i o n s   t o   b e   a c c e s s e d . 
 
 
 
 H o w   d o   I   c r e a t e   a   n e w   p a g e ?   
 
   *   M a k e   a   n e w   . p h p   f i l e   a n d   u s e   t h e   f o l l o w i n g   c o d e : 
 
   
 
 	 	 < ? p h p   i n c l u d e   ' h e a d e r . p h p ' ; ? > 
 
 	 	 	 / / s i t e   c o n t e n t   g o e s   h e r e 
 
 	 	 < ? p h p   i n c l u d e   ' f o o t e r . p h p ' ; ? > 
 
   
 
   
 
   
 
 A B O U T 
 
 - - - - - - - - - - - - - 
 
 T h i s   p r o j e c t   w a s   c r e a t e d   b y   S i d   J o t s i n g a n i   f o r   O p u s   I n t e r n a t i o n a l   C o n s u l t a n t s   L t d ,   f o r   B T e c h   4 5 1   a t   T h e   U n i v e r s i t y   o f   A u c k l a n d . 
 
 T h e   S u p e r v i s o r s   f o r   t h i s   p r o j e c t   w e r e   D r .   S u l o   S h a n m u g a n a t h a n ,   D r .   X i n f e n g   Y e . 
 
 T h e   c o - o r d i n a t o r   f o r   B T e c h   4 5 1   w a s   D r .   S a t h i a m o o r t h y   M a n o h a r a n . 
 
 
 
 
 
 